package com.yu1996.gulimall.product.feign;

import com.yu1996.common.to.SkuReductionTo;
import com.yu1996.common.to.SpuBoundTo;
import com.yu1996.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-coupon")
public interface CouponFeignService {

  @PostMapping("coupon/spubounds/save")
  R saveSpuBounds(@RequestBody SpuBoundTo spuBoundTo);
  @PostMapping("coupon/spubounds/save")
  R saveSkuReduction(SkuReductionTo skuReductionTo);
}
